﻿using Bootstrap.Template.Badged;
using System.Web.UI;

namespace Bootstrap.Control
{
    [ToolboxData("<{0}:BootstrapBadgeds runat=server></{0}:BootstrapBadgeds>")]
    public class BootstrapBadgeds : System.Web.UI.WebControls.WebControl
    {
        #region Properties

        public string Text { get; set; }

        #endregion

        #region Methods

        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            BootstrapBadgetTemplate tempalte = new BootstrapBadgetTemplate();

            tempalte.Text = Text;

            writer.Write(tempalte.TransformText());
        }

        #endregion
    }
}
